class Order < ActiveRecord::Base
  attr_accessible :delivery_date, :street, :street_number, :article_id

  belongs_to :user
  belongs_to :article

  #has_many :articles, :through => :article_orders

validates :delivery_date, :street, :street_number, :article_id, presence: true
end
